package com.usian.api.article;

import com.usian.model.article.dtos.ArticleDto;
import com.usian.model.article.dtos.ArticleHomeDto;
import com.usian.model.article.dtos.ArticleInfoDto;
import com.usian.model.article.pojos.ApArticle;
import com.usian.model.common.dtos.ResponseResult;

import java.util.List;

public interface ApArticleApi {

    ApArticle saveArticle(ApArticle apArticle);

    /**
     * 加载首页文章
     *
     * @return
     */
    ResponseResult load(ArticleHomeDto dto);

    /**
     * 加载更多 上拉
     *
     * @return
     */
    ResponseResult loadMore(ArticleHomeDto dto);

    /**
     * 加载最新 下拉
     *
     * @return
     */
    ResponseResult loadNew(ArticleHomeDto dto);

    ResponseResult loadArticleInfo(ArticleDto dto);

    ResponseResult loadArticleBehavior(ArticleInfoDto dto);

    List<ApArticle> findArticleList();
}
